输入组合(Input group)

您所在的位置:网站首页 小米平板4刷miui13 for pad 输入组合(Input group)

输入组合(Input group)

#输入组合(Input group)| 来源: 网络整理| 查看: 265

基本示例

在输入的任一侧放置一个附加组件或按钮。也可以在输入的两侧各放置一个。记住将label放在输入组之外。

@ @example.com https://example.com/users/ $ .00 @ With textarea @ @example.com Your vanity URL https://example.com/users/ $ .00 @ With textarea 包装

默认情况下,输入组通过flex-wrap: wrap进行包装,以便在输入组中容纳自定义表单字段验证。您可以使用nowrap禁用此功能。

@ @ Sizing

将相对窗体大小调整类添加到.input-group 。输入组本身和其中的内容将自动调整大小,无需在每个元素上重复窗体控件大小调整类。

不支持对单个输入组元素进行大小调整。

Small Default Large Small Default Large 复选框和单选按钮

将任何复选框或单选选项放置在输入组的加载项中,而不是文本中。当输入旁边没有可见文本时,建议将.mt-0添加到.form-check-input中。

多输入框

虽然外观上支持多个input,但验证样式仅适用于具有单个input的输入组。

First and last name First and last name 多个附加组件

支持多个附加组件,可以与复选框和单选输入版本混合使用。

$ 0.00 $ 0.00 $ 0.00 $ 0.00 附加按钮 Button Button Button Button Button Button 带下拉列表的按钮 Action Another action Something else here Separated link Action Another action Something else here Separated link Action before Another action before Something else here Separated link Action Another action Something else here Separated link Dropdown Action Another action Something else here Separated link Dropdown Action Another action Something else here Separated link Dropdown Action before Another action before Something else here Separated link Dropdown Action Another action Something else here Separated link 分割按钮 Action Another action Something else here Separated link Action Another action Something else here Separated link Action Toggle Dropdown Action Another action Something else here Separated link Action Toggle Dropdown Action Another action Something else here Separated link 自定义表单

输入组包括对自定义选择和自定义文件输入的支持。不支持浏览器默认版本。

自定义选择 Options Choose... One Two Three Choose... One Two Three Options Button Choose... One Two Three Choose... One Two Three Button 自定义文件输入 Upload Upload Button Button Sass Variables $input-group-addon-padding-y: $input-padding-y; $input-group-addon-padding-x: $input-padding-x; $input-group-addon-font-weight: $input-font-weight; $input-group-addon-color: $input-color; $input-group-addon-bg: $gray-200; $input-group-addon-border-color: $input-border-color;


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3